<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>11_新增背景模型_复合属性</title>
    <style>
        .box1{
            width: 1800px;
            height: 1800px;
            background-image: url("../../resource/韩立1.png");
            border: 50px dashed red;
            padding: 50px;
            background-position: top left;/*默认从padding开始*/
            /*背景设置从content开始*/
            background-origin: content-box;
            /*位置可以选择为top bottom left right 也可以设置像素值*/
            background-repeat: no-repeat;
            background-color: orange;
        }
    </style>
</head>
<body>
<div class="box1"></div>
</body>
</html>